"""Try URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from django.urls import path
from App import views
app_name='App'

urlpatterns = [
    #修改密码
    path('change_psw/',views.change,name='change'),
    path('change_psw2/',views.change2,name='change2'),

    #返回用户登录页面
    path('login_user/',views.login_user,name='login_user'),

    #登录验证
    path('login/',views.register,name='user_register'),
    #注册用户
    path('',views.login,name='register'),
    #主页面
    path('all/',views.index,name='index'),

    #系统设置
    path('all2/',views.index2,name='index2'),
    path('main2/',views.public_main2,name='main2'),

    #主页面数据分析
    path('main_data/<int:cid>/',views.main_data,name='main_data'),
    #主页面下载量分析
    path('download_data/<int:cid>/',views.download,name='download_data'),
    #主页面年度发布
    path('publish/<int:cid>/',views.publish,name='publish_data'),

    #文章类型管理
    path('articleType/',views.articleType,name='articleType'),
    #图片管理
    path('photo/',views.photo,name='photo'),

    #左边导航栏
    path('left/',views.public_left,name='left'),

    #上边的导航栏
    path('header/',views.public_header,name='header'),

    #主窗口
    path('main/',views.public_main,name='main'),
    path('main/<int:cid>/',views.public_main,name='main'),
    path('main/<int:cid>/<int:page>/',views.public_main,name='main'),

    #系统管理验证
    path('system/',views.system,name='system'),

    #管理员登录
    path('manager/',views.manager,name='manager'),
    #管理用户信息
    path('manager_user/',views.manager_user,name='manager_user'),
    #数据爬取
    path('data_input/',views.data_input,name='data_input'),

    # path("refresh/", views.refresh, name='refresh'),


    # #文本编译器
    # path('edit/',views.edit_,name='edit'),

    # #文件上传
    # path('file/',views.files,name='file'),




]
